package cn.maihe.elg.operation.centers.follow.enums;

/**
 * @Description
 * @Author WJH
 * @Date 2021/07/29
 */
public enum FollowRespCode {
    SUCCESS("200", "成功"),
    FAILURE("500", "失败"),
    ;

    private String respCode;
    private String respDesc;

    FollowRespCode(String respCode, String respDesc) {
        this.respCode = respCode;
        this.respDesc = respDesc;
    }

    public String getRespCode() {
        return respCode;
    }

    public String getRespDesc() {
        return respDesc;
    }

    public static boolean isSuccess(String respCode){
        return SUCCESS.getRespCode().equals(respCode);
    }
}
